package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 义务教育阶段预报名表
 *
 * @author wangtao
 * @since 2022-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_enroll_before")
@Schema(name = "EduStudentEnrollBefore", title = "义务教育阶段预报名表", description = "义务教育阶段预报名表实体类")
public class EduStudentEnrollBefore extends Model<EduStudentEnrollBefore> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "enrollBeforeId", title = "主键")
    @TableId(value = "enroll_before_id", type = IdType.ASSIGN_ID)
    private Long enrollBeforeId;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "studentEnrollPreId", title = "预采集id")
    @TableField(value = "student_enroll_pre_id")
    private String studentEnrollPreId;
    @Schema(name = "verificationType", title = "需线下核验的类型，多选")
    @TableField(value = "verification_type")
    private String verificationType;
    @Schema(name = "schoolId", title = "可报名学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "configTypeName", title = "招生计划类别")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Schema(name = "houseId", title = "房产id")
    @TableField(value = "house_id")
    private String houseId;

    @Schema(name = "houseAdreess", title = "房产地址")
    @TableField(value = "house_adreess")
    private String houseAdreess;

    @Schema(name = "householdId", title = "户籍id")
    @TableField(value = "household_id")
    private String householdId;

    @Schema(name = "householdAdress", title = "户籍地址")
    @TableField(value = "household_adress")
    private String householdAdress;

    @Schema(name = "privateAppointFlag", title = "是否民办直升班 0 否 1 是")
    @TableField(value = "private_appoint_flag")
    private String privateAppointFlag;

    @Schema(name = "privateAppointStudentId", title = "民办直升班名单id")
    @TableField(value = "private_appoint_student_id")
    private String privateAppointStudentId;

    @Schema(name = "appointFlag", title = "是否城区E类人员 0 否 1 是")
    @TableField(value = "appoint_flag")
    private String appointFlag;

    @Schema(name = "appointStudentId", title = "E类学籍名单id")
    @TableField(value = "appoint_student_id")
    private String appointStudentId;

    @Schema(name = "specialFlag", title = "特殊人员标识、针对学校录入的")
    @TableField(value = "special_flag")
    private String specialFlag;
    @Schema(name = "aborigineFlag", title = "是否原住居民")
    @TableField(value = "aborigine_flag")
    private String aborigineFlag;
    @Schema(name = "serviceFlag", title = "是否服务区")
    @TableField(value = "service_flag")
    private String serviceFlag;
    @Schema(name = "configNameAlias", title = "招生类别别名")
    @TableField(value = "config_name_alias")
    private String configNameAlias;
    @Schema(name = "configNameNum", title = "同类别序号")
    @TableField(value = "config_name_num")
    private Integer configNameNum;

    @Schema(name = "authStatus", title = "审核状态")
    @TableField(value = "auth_status")
    private String authStatus;

    @Schema(name = "authRemarks", title = "审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "authTime", title = "审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authUserId", title = "审核人")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "houseName", title = "房产权力人姓名")
    @TableField(value = "house_name")
    private String houseName;

    @Schema(name = "houseIdcard", title = "房产权利人身份证")
    @TableField(value = "house_idcard")
    private String houseIdcard;

    @Schema(name = "relationshipType", title = "与学生的关系类型：1父亲 2母亲 3爷爷 4奶奶 5外公 6外婆 7监护人")
    @TableField(value = "relationship_type")
    private String relationshipType;


    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Override
    public Serializable pkVal() {
        return this.enrollBeforeId;
    }
}
